<template>
  <div>
    <div v-text="text"></div>
    <div v-html="text"></div>
  </div>
</template>

<script setup>
    const text = "<h1>我是文本<h1/>"
</script>

<style lang="scss" scoped>

</style>